<template>
  <div class="success">
    <msg title="签约成功" icon="success" :buttons="button"></msg>
  </div>
</template>
<script>
import { Msg, XButton } from 'vux'
import router from '../../router/index.js'
export default {
  data () {
    return {
      button: [{
        type: 'primary',
        text: '返回首页',
        onClick: this.back.bind(this)
      }]
    }
  },
  methods: {
    back () {
      router.push({ path: '/' })
    }
  },
  components: {
    Msg,
    XButton
  }
}
</script>
<style lang="less">
  .success{
    .weui-icon-success {
      color: #0066CC;
    }
    .weui-btn_primary {
      background-color: #0066CC;
    }
  }
</style>
